import request from '@/utils/request'

// 查询用户奖励列表
export function listUserReward(query) {
  return request({
    url: '/system/userReward/list',
    method: 'get',
    params: query
  })
}

// 查询用户奖励详细
export function getUserReward(id) {
  return request({
    url: '/system/userReward/' + id,
    method: 'get'
  })
}

// 新增用户奖励
export function addUserReward(data) {
  return request({
    url: '/system/userReward',
    method: 'post',
    data: data
  })
}

// 修改用户奖励
export function updateUserReward(data) {
  return request({
    url: '/system/userReward',
    method: 'put',
    data: data
  })
}

// 删除用户奖励
export function delUserReward(id) {
  return request({
    url: '/system/userReward/' + id,
    method: 'delete'
  })
}
